package com.freestyle.jmssample.api.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by rocklee on 2022/1/5 15:46
 */
@Data
@ToString
public class SMSBean implements Serializable {
  private String subject;
  private String content;
  private String from;
  private String to;
  private Date timestamp;

  public SMSBean() {
    timestamp=new Date();
  }

  public SMSBean(String subject, String content, String from, String to) {
    this();
    this.subject = subject;
    this.content = content;
    this.from = from;
    this.to = to;
  }
}
